.form-excel-style {
  // border-top: 1px solid #c7d8fc;
  border-bottom: 1px solid #c7d8fc;

  .ant-form-item-row {
    // border-bottom: 1px solid #c7d8fc;
    &::after {
      content: '';
      bottom: -1px;
      left: 0;
      right: 0;
      position: absolute;
      height: 1px;
      z-index: 1;
      width: 100%;
      background: #c7d8fc;
    }
    &::before {
      content: '';
      top: 0;
      left: 0;
      right: 0;
      position: absolute;
      height: 1px;
      width: 100%;
      z-index: 1;
      background: #c7d8fc;
    }
    .ant-col.ant-form-item-label {
      border-left: 1px solid #c7d8fc;
      background: #f3f6ff;
      height: auto;
      line-height: 1.5;
      padding: 0 0;

      label {
        padding-top: 4px;
        color: #000000;
      }
    }
    .ant-col.ant-form-item-control {
      border-left: 1px solid #c7d8fc;
      &::after {
        content: '';
        bottom: 0;
        top: 0;
        position: absolute;
        right: -1px;
        height: 100%;
        width: 1px;
        background: #c7d8fc;
      }
    }
  }
  //修改表单校验展示方式 start
  & > .ant-row {
    .ant-col:not(.ant-form-item-control, .ant-form-item-label),
    .ant-form-item {
      .ant-collapse .collapse-form {
        .ant-collapse-content {
          overflow: visible;
        }
        .ant-collapse-content-box {
          overflow: visible;
        }
      }

      .ant-form-item-explain {
        position: absolute;
        bottom: auto;
        left: auto;
        right: 0;
      }

      .ant-form-item-explain-error {
        z-index: 9;
        background: #fff1f0;
        position: absolute;
        border: 1px solid #ffa39e;
        line-height: 20px !important;
        padding: 0px 8px;
        border-radius: 2px;
        right: 2px;
        top: -56px;
        white-space: nowrap;
        min-height: 20px;
        bottom: auto;

        &:before {
          box-sizing: content-box;
          width: 0px;
          height: 0px;
          position: absolute;
          bottom: -11px;
          right: 6px;
          padding: 0;
          border-top: 6px solid #fff1f0;
          border-bottom: 6px solid transparent;
          border-left: 6px solid transparent;
          border-right: 6px solid transparent;
          display: block;
          content: '';
          z-index: 12;
        }

        &:after {
          box-sizing: content-box;
          width: 0px;
          height: 0px;
          position: absolute;
          bottom: -12px;
          right: 6px;
          padding: 0;
          border-top: 6px solid #ffa39e;
          border-bottom: 6px solid transparent;
          border-left: 6px solid transparent;
          border-right: 6px solid transparent;
          display: block;
          content: '';
          z-index: 10;
        }
      }
    }
  }
  //修改表单校验展示方式 end
  .Richtext {
    border: 0;
  }
  .ant-col.ant-form-item-control {
    padding: 0;
    // border-bottom: 1px solid #c7d8fc;
    border-top: 0;
    background: #fff;

    .ant-input-suffix {
      margin-right: 10px;
      color: @text-color-less;
    }

    .ant-select-arrow {
      right: 12px;
      color: @text-color-less;
    }

    .ant-picker-suffix {
      margin-right: 10px;
      color: @text-color-less;
    }

    .ant-form-item-control-input {
      min-height: 40px;
    }

    .avic-upload {
      padding: 4px 8px;
    }

    .avic-upload.file-uploads {
      padding: 0;
    }

    .ant-input-textarea-show-count::after {
      position: absolute;
      right: 8px;
      bottom: 12px;
      z-index: 3;
    }

    .ant-radio-group,
    .ant-checkbox-group,
    .ant-select-multiple .ant-select-selector {
      padding: 0 8px;
    }

    .ant-switch {
      margin-left: 8px;
    }

    .ant-input-number-affix-wrapper {
      width: 100%;

      // .ant-input-number-input {
      //   height: 38px;
      //   padding-left: 8px;
      // }
    }

    .ant-input-affix-wrapper .ant-input-suffix {
      margin-inline-start: initial;
    }

    .ant-input-affix-wrapper .ant-input-prefix > *:not(:last-child),
    .ant-input-affix-wrapper .ant-input-suffix > *:not(:last-child) {
      margin-inline-end: 4px;
    }

    .ant-select-single .ant-select-selector .ant-select-selection-item,
    .ant-select-single .ant-select-selector .ant-select-selection-placeholder,
    .ant-select-selection-item,
    .ant-picker-input input,
    .ant-input-number .ant-input-number-input {
      line-height: 40px;
      padding-left: 8px;
      min-height: 40px;
    }

    .ant-input-number .ant-input-number-input:not(input[disabled]) {
      &:focus {
        box-shadow: inset 0 0 0 1px @primary-color;
        position: relative;
        z-index: 2;
        border-radius: 0;
      }
    }

    .ant-picker .ant-picker-suffix {
      margin-right: 8px;
    }
    .ant-picker .ant-picker-clear {
      font-size: 12px;
      inset-inline-end: 28px;
    }
    :where(.css-dev-only-do-not-override-oyakb3).ant-input-number:hover .ant-input-number-handler-wrap,
    :where(.css-dev-only-do-not-override-oyakb3).ant-input-number-focused .ant-input-number-handler-wrap {
      background: transparent;
    }

    .ant-input-number,
    .ant-picker,
    .ant-picker-input,
    .ant-select-selection-search-input {
      border: 0;
      padding: 0;
      border-radius: 0;
      min-height: 40px;
      border: 0;
    }

    .ant-select:not(.ant-select-disabled):not(.ant-select-customize-input):not(.ant-pagination-size-changer):hover .ant-select-selector {
      border: 0;
    }

    .ant-input-number .ant-input-number-input:not(input[disabled]) {
      border: 0;
      border-radius: 0;
      &:hover,
      &:focus {
        box-shadow: inset 0 0 0 1px @primary-color;
        position: relative;
        z-index: 2;
      }
    }
    .ant-input-textarea .ant-input {
      border-radius: 0px;
      margin-top: 1px;
    }
    .ant-picker-focused,
    .ant-input-textarea .ant-input:hover:not(.ant-input-disabled) {
      // border-color: @primary-color;
      box-shadow: inset 0 0 0 1px @primary-color;
      position: relative;
      z-index: 4;
    }
    .ant-input-number-disabled {
      // background: transparent;
    }
    .ant-radio-disabled .ant-radio-inner,
    .ant-checkbox-disabled .ant-checkbox-inner {
      border-color: rgba(0, 0, 0, 0.2);
      cursor: not-allowed;
    }
    .ant-radio-wrapper .ant-radio-disabled .ant-radio-inner::after {
      background-color: rgb(0 0 0 / 40%);
    }
    .ant-checkbox-disabled .ant-checkbox-inner:after {
      border-color: rgb(0 0 0 / 40%);
    }
    .ant-input-affix-wrapper {
      border: 0;
      z-index: 0;
    }

    .ant-input-affix-wrapper,
    // .Richtext,
    .ant-input-affix-wrapper,
    .ant-input-number-affix-wrapper {
      border: 0;
      padding: 0;
      border-radius: 0;
      min-height: 40px;
      &:not(
          .ant-input-affix-wrapper-disabled,
          .ant-input-number-affix-wrapper-disabled,
          .ant-select-disabled .ant-select-selector,
          .ant-input-number-disabled,
          .ant-input-disabled,
          .ant-input-affix-wrapper-disabled,
          .ant-input-affix-wrapper-textarea-with-clear-btn
        ) {
        &:hover,
        &:focus {
          border-color: @primary-color;
          box-shadow: inset 0 0 0 1px @primary-color;
          position: relative;
          z-index: 2;
        }
      }

      textarea {
        border: 0;
      }

      .ant-select-selection-item-content,
      .ant-select-selection-item-remove {
        line-height: 24px;
      }

      .ant-input:not(textarea) {
        line-height: 32px;
        padding-left: 8px;
        background: transparent;
      }
    }
    .ant-form-item-control-input-content > .ant-input,
    .ant-select-selector {
      border: 0;
      padding: 0;
      padding-left: 8px;
      border-radius: 0;
      min-height: 40px;

      &:not(.ant-input-disabled) {
        &:hover,
        &:focus {
          // border-color: @primary-color;
          box-shadow: inset 0 0 0 1px @primary-color;
          position: relative;
          z-index: 4;
        }
      }
    }

    .ant-select-selector {
      height: 40px;
      .ant-select-selection-item {
        line-height: 24px;
        min-height: 24px;
      }
    }
  }

  .ant-row {
    width: 100%;
    position: relative;
    line-height: 0;
    & > .ant-col {
      .ant-form-item {
        margin-bottom: 0px !important;
        display: flex;
        align-items: stretch;
        align-content: stretch;
        border: 0;
        height: 100%;
      }

      .ant-select-selection--multiple .ant-select-selection__rendered {
        margin-bottom: 0;
      }

      .ant-select-selection--multiple {
        padding: 0;
      }

      .ant-form-item-control-wrapper {
        background: #ffffff;

        .ant-form-item-control {
          height: auto;
          padding: 0 4px;
          height: 100%;
          min-height: auto;

          .ant-input-number-disabled,
          .ant-input-number-input {
            border: 0;
            background: inherit;
          }
        }

        .ant-switch {
          margin: 5px;
        }

        .avic-form-item-file-upload {
          .ant-form-item-control-wrapper {
            padding: 0px;
          }
        }

        .file-block {
          margin: 0;
          margin-right: 4px;
          margin-bottom: 4px;
          background: #fff;
        }

        .uploader-file-list {
          margin-top: 4px;
        }
      }
    }

    .ant-col.avic-form-item-file-upload-col {
      .ant-form-item {
        border: 1px solid #c7d8fc;

        .ant-form-item-control-wrapper {
          border-top: 0px;
        }
      }

      .avic-form-item-file-upload {
        .ant-form-item-control-wrapper {
          padding: 8px;
        }
      }
    }
  }
  & > .ant-row:not(.ant-form-item-row) {
    border-top: 0;
    border-right: 1px solid #c7d8fc;
  }
  // 表单只读修改
  .ant-form-item .ant-form-item-control {
    .ant-input[disabled],
    .ant-picker-input > input[disabled],
    .ant-radio-button-wrapper-disabled,
    .ant-radio-button-wrapper-disabled:first-child,
    .ant-radio-button-wrapper-disabled:hover,
    .ant-select-disabled.ant-select-multiple .ant-select-selection-item,
    .ant-select-disabled.ant-select:not(.ant-select-customize-input) .ant-select-selector,
    .ant-input-number-disabled,
    .ant-input-disabled,
    .ant-input-number .ant-input-number-input[disabled] {
      color: @text-color;
      background-color: #fafafc;
      &.ant-radio-button-wrapper-checked {
        color: @text-color-secondary;
        background-color: @border-color-split;
      }
    }
    .ant-checkbox-disabled + span,
    .ant-radio-disabled + span {
      color: @text-color;
    }
  }
  //自动编码样式修改
  .auto-code-form {
    & > .ant-row {
      & > .ant-btn {
        margin-top: 16px;
      }
    }
    .ant-row {
      border: 0;
      &::before {
        background: transparent;
      }
      .ant-col:not(.ant-form-item-control, .ant-form-item-label),
      .ant-form-item-row {
        &::before {
          background: transparent;
        }
        &::after {
          background: transparent;
        }
      }
      .ant-col.ant-form-item-control .ant-input-affix-wrapper {
        border: 1px solid #d9d9d9;
      }
    }
  }
  //只读状态下组件隐藏图标
  .ant-input[disabled],
  .ant-input-affix-wrapper-disabled,
  .ant-input-number-disabled,
  .ant-select-disabled,
  .ant-select-disabled .ant-select-selector,
  .ant-picker-disabled,
  .ant-input-textarea .ant-input-disabled,
  .ant-input-disabled[textarea] {
    background: #fafafc;
    color: #1d2129;
    .ant-input-suffix {
      display: none;
    }
    .ant-select-arrow {
      display: none;
    }
    .ant-picker-suffix {
      display: none;
    }
  }

  //只读状态下input的hover样式，取消层级遮挡
}